package com.own.component.device.impl;

import com.own.component.device.base.RequestDeviceManager;
import com.own.component.device.property.DeviceProperty;

import javax.servlet.http.HttpServletRequest;

/**
 * DefaultParameterRequestDeviceManager
 *
 * @author chenxueli
 * @date 2024-03-15 11:37:07
 */
public class DefaultParameterRequestDeviceManager extends RequestDeviceManager {

    public DefaultParameterRequestDeviceManager(DeviceProperty property) {
        super(property);
    }

    /**
     * 获取客户端信息
     *
     * @return 客户端信息
     */
    @Override
    public String client(HttpServletRequest request) {
        return request == null ? null : request.getParameter(this.getDeviceIdField());
    }

}
